package gluck.sintactico.symbolTable;

public class Node {

	NodeKey key;
	String type;
	
	public Node(String name, String level, String type) {
		this.key= new NodeKey(level, name);
		this.type = type;
	}

	public Node(NodeKey key, String type) {
		this.key= key;
		this.type = type;
	}

	@Override
	public boolean equals(Object obj) {
		return key.equals(obj);
		
	}

	@Override
	public int hashCode() {
		return key.hashCode();
	}

}
